<?php
class Admin_telaCandidatosController extends Zend_Controller_Action {

    public function init() {
        if (!Zend_Auth::getInstance()->hasIdentity()) {
            return $this->_helper->redirector->goToRoute(array('controller' => 'index'), null, true);
        }
    }

    public function indexAction() {
        $admin1 = Zend_Auth::getInstance()->getIdentity();
        $this->_helper->layout->disableLayout();
        
         $this->_helper->redirector->goToRoute(array('action' => 'duvidas'), null, true);
    }
    
    public function inicioAction() {
        $admin1 = Zend_Auth::getInstance()->getIdentity();
        $this->_helper->layout->disableLayout();
    }
    
    public function calendarioAction() {
        $admin1 = Zend_Auth::getInstance()->getIdentity();
        $this->_helper->layout->disableLayout();
    }
    
    public function duvidasAction() {
        $admin1 = Zend_Auth::getInstance()->getIdentity();
        $this->_helper->layout->disableLayout();
        $duvidas= new Application_Model_DbTable_duvidas();
        $this->view->duvidas = $duvidas->listar();
    }
    
}